import request from "@/utils/request";

//查询所有
export const getAllBrands = () => request.get('/brand');

//分页查询
export const queryBrand = (params) =>request.get(`/brand/page`,params);

//新增
export  const addBrand = (data) =>request.post('/brand',data);
//回显数据
export const selectBrandById=(id)=>{return request.get(`/brand/${id}`)};

//修改
export const updateBrand =(data)=>{return request.put('/brand',data)};

//删除
export const deleteBrandById=(id)=>{return request.delete(`/brand/${id}`)};